Forms, Element - Image

 

Use

The image element is not commonly used. Essentially it is a submit button that uses a graphic instead of text. The button, as well as submitting all the data in the form, returns the mouse’s position on the graphic when clicked. It returns 0,0 if the visitor clicks on the top left of the graphic, and the horizontal size and vertical size of the image if clicked on the bottom right of the graphic. (See discussion and background for more details).

Properties

ATTRIBUTE

REQUIRED

DESCRIPTION

NAME=" "

Optional

The name of the submit button.

SRC=" "

Required

The location of the Image to be used as the submit button. The syntax is identical to the IMG SRC tag. (c.f. Absolute and Relative References )

Example

<INPUT TYPE="image" NAME="image_submit" SRC="poses.gif">

 

NOTE

For this example to work it must be inside form tags <FORM .. ..> .. .. </FORM>. The entire form code, including all the examples, is ready for you to use.